﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class FileInfoManager
    {
        public List<FileInfo> GetAllFileInfo()
        {
            return new FileInfoService().GetAllFileInfo();
        }
        public List<FileInfo> GetAllFileInfoByParentId(int id)
        {
            return new FileInfoService().GetAllFileInfoByParentId(id);
        }
        public FileInfo GetAllFileInfoByFileId(int id)
        {
            return new FileInfoService().GetAllFileInfoByFileId(id);
        }
        public List<FileInfo> GetAllFileInfoDeleted()
        {
            return new FileInfoService().GetAllFileInfoDeleted();
        }
        public void DeleteFileInfo(int id)
        {
            new FileInfoService().DeleteFileInfo(id);
        }
        public void UpdateFileInfo(FileInfo file)
        {
            new FileInfoService().UpdateFileInfo(file);
        }
        public void AddFileInfo(FileInfo file)
        {
            new FileInfoService().AddFileInfo(file);
        }
    }
}
